#pragma once
#include "IComponent.h"
#include <d3dx9.h>
#define G -0.5f
#define GROUND 0
class Physics :
	public IComponent
{
protected:
	
	D3DXVECTOR2 _v;
	
public:
	D3DXVECTOR2 _pos;
	Physics(D3DXVECTOR2 p);
	~Physics(void);

	virtual void init();
	void move();
	virtual void update();
	D3DXVECTOR2 getPosition();
	void setPosition(D3DXVECTOR2 p);
	void setV(float vx,float vy);

};

